package com.hz.qs.dao;

import com.hz.qs.model.YiCallPatient;
import com.hz.qs.model.YiQueues;
import com.hz.qs.model.vo.CustomerDataVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.LinkedList;
import java.util.List;

public interface DoctorDao extends Mapper<YiCallPatient> {

    List<CustomerDataVo> getCustomerDataByDept(@Param("firstDate") String firstDate,@Param("endDate") String endDate,@Param("queueId") String queueId,@Param("customerName") String customerName);

    List<YiCallPatient> loopTips(@Param("jgsId") String jgsId,@Param("firstDate") String firstDate,@Param("endDate") String endDate,@Param("callState") Integer callIng);

    List<YiQueues> getQueueByDeptCode(@Param("deptCode") String deptCode);

    void docFinish(@Param("checkId") String checkId, @Param("projectId") String projectId,@Param("docName") String docName);

    List<YiCallPatient> getCallDataByCustomerIdAndQeueuId(@Param("customerId") String customerId, @Param("queueId") String queueId);

    LinkedList<YiQueues> getYiQueuesByQueueId(@Param("firstDate") String firstDate, @Param("endDate") String endDate, @Param("queueId") String queueId);

    void updateQueue(@Param("queues") YiQueues queues);

    LinkedList<YiQueues> getYiQueuesByCustomerId(@Param("customerId") String customerId);

    void docFinish_st(@Param("checkId") String checkId,@Param("projectId") String projectId);

    void updateQueueState(@Param("call") YiCallPatient yiCallPatient);

    LinkedList<YiQueues> selectYiQueuesByCustomerId_QueueId(@Param("customerId") String customerId,@Param("queueId") String queueId);

    List<YiCallPatient> docLoopTips(@Param("customerId") String customerId, @Param("firstDate") String firstDate,@Param("endDate") String endDate,@Param("callState") Integer callIng);

}
